home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / ZoomedVideo.a < prev   
Encoding:
Text File  |  1998-08-17  |  3.7 KB  |  106 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ZoomedVideo.a
  3. ;
  4. ;    Contains:    PC Card Family Zoomed Video Driver Interface
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1996-1998 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__ZOOMEDVIDEO__') = 'UNDEFINED' THEN
  18. __ZOOMEDVIDEO__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__DEVICES__') = 'UNDEFINED' THEN
  24.     include 'Devices.a'
  25.     ENDIF
  26.  
  27.  
  28. ;  Control codes 
  29.  
  30.  
  31. cscZVVideoEnable                EQU        2                    ; Used to enable or disable ZV Video
  32. cscZVSetCurrentAnalogValue        EQU        3                    ; Used to set brightness, contrast, etc.
  33. cscZVSetInput                    EQU        9                    ; Set video source to selected input
  34. cscZVSetInputStandard            EQU        11                    ; Set the input to NTSC, PAL, or SECAM
  35. cscZVGetMaxSourceRect            EQU        12                    ; Get Maximum Source Rect
  36. ;  Status codes
  37.  
  38. cscZVGetVideoEnable                EQU        2                    ; Indicates whether ZV Video is enabled
  39. cscZVGetCurrentAnalogValue        EQU        3                    ; Used to get brightness, contrast, etc.
  40. cscZVGetDefaultAnalogValue        EQU        4
  41. cscZVGetVSyncState                EQU        5                    ; Used to look for a Vertical Sync on ZV Video
  42. cscZVGetInfo                    EQU        6                    ; Returns the ZV Information
  43. cscZVGetInputFlags                EQU        7                    ; Returns the input flags.
  44. cscZVGetNumberOfInputs            EQU        8                    ; Returns the number of video inputs
  45. cscZVGetInput                    EQU        9                    ; Zero-based input number
  46. cscZVGetInputFormat                EQU        10                    ; Returns whether input is compsite/s-video
  47.  
  48.  
  49. ;  -----------------------------------------------------------------
  50. ;   Additional parameters for csInfoZV control call
  51. ;      A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  52. ;      which must be filled by the driver in response to this call.
  53.  
  54.  
  55.  
  56. ; typedef UInt32                         ZVFeatures
  57.  
  58.  
  59. kZVHasAudio                        EQU        $01
  60. kZVHasTVTuner                    EQU        $02
  61. kZVHasContrast                    EQU        $00010000
  62. kZVHasBrightness                EQU        $00020000
  63. kZVHasSharpness                    EQU        $00040000
  64. kZVHasSaturation                EQU        $00080000
  65. kZVHasHue                        EQU        $00100000
  66.  
  67. ZVInfo                    RECORD 0
  68. features                 ds.l    1                ; offset: $0 (0)
  69. currentFlags             ds.l    1                ; offset: $4 (4)
  70. activeRect                 ds        Rect            ; offset: $8 (8)
  71. isInterlaced             ds.b    1                ; offset: $10 (16)
  72. filler                     ds.b    1                ; offset: $11 (17)
  73. reserved1                 ds.l    1                ; offset: $12 (18)
  74. reserved2                 ds.l    1                ; offset: $16 (22)
  75. sizeof                     EQU *                    ; size:   $1A (26)
  76.                         ENDR
  77. ZVFlagRecord            RECORD 0
  78. csFlag                     ds.b    1                ; offset: $0 (0)
  79. filler                     ds.b    1                ; offset: $1 (1)
  80. sizeof                     EQU *                    ; size:   $2 (2)
  81.                         ENDR
  82.  
  83. ;  -----------------------------------------------------------------
  84. ;   Additional definitions for "AnalogCtlZV" control calls
  85. ;      A pointer to a ZVSetAnalogControlParam is passed to the driver
  86. ;      whenever the system needs to adjust one of the analog settings.
  87.  
  88.  
  89. ; typedef UInt16                         ZVAnalogControlSelector
  90.  
  91.  
  92. kZVContrast                        EQU        1                    ; Range:  0x0 <= no change to image, larger values increase the contrast
  93. kZVBrightness                    EQU        2                    ; Range:  0x0 <= darkest setting, 0xffff = lightest setting
  94. kZVSharpness                    EQU        3                    ; Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering
  95. kZVSaturation                    EQU        4                    ; Range:  0x0 <= min saturation, 0xffff <= max saturation        
  96. kZVHue                            EQU        5                    ; Range:  0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift
  97. kZVBlackLevel                    EQU        6                    ; Range:  0x0 <= max black, 0xffff <= min black level
  98. kZVWhiteLevel                    EQU        7                    ; Range:  0x0 <= min white, 0xffff <= max white level
  99. ZVAnalogControlRecord    RECORD 0
  100. whichControl             ds.w    1                ; offset: $0 (0)
  101. value                     ds.w    1                ; offset: $2 (2)
  102. sizeof                     EQU *                    ; size:   $4 (4)
  103.                         ENDR
  104.     ENDIF ; __ZOOMEDVIDEO__ 
  105.  
  106.